<%@page import="model.User" contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>
<%--
The taglib directive below imports the JSTL library. If you uncomment it,
you must also add the JSTL library to the project. The Add Library... action
on Libraries node in Projects view can be used to add the JSTL 1.1 library.
--%>
<%--
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> 
--%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>接收邮件</title>
    </head>
    <%
    User user=(User)session.getAttribute("user");
    String username=user.getUsername();
    String password=user.getPassword();
     %>
    <body>
 		<form method="post" action="mailcontent.jsp">
        <table align="center" border="0" cellspacing="0" cellpadding="0">
            <tr>
                <td>
                    用户名称：
                </td>
                <td> 
                    <input type="text" name="user" value=<%=username %> size="80"/>
                </td> 
            </tr>
            <tr>
                <td>
                    用户密码：
                </td>
                <td>
                    <input type="password" name="password" value=<%=password %> size="80"/>
                </td>
            </tr>
            <tr>
                <td>
                    邮局协议：
                </td>
                <td>
                    <input type="text" name="protocol" value="pop3" size="80"/>
                </td>
            </tr>
            <tr>
                <td colspan="2" align="center">
                    <input type="submit" value="接收邮件"/>
                    <a href="/asd/mailservice.jsp">返回邮件服务</a>
                </td>
            </tr>
    </table>
    </form>
    
    <%--
    This example uses JSTL, uncomment the taglib directive above.
    To test, display the page like this: index.jsp?sayHello=true&name=Murphy
    --%>
    <%--
    <c:if test="${param.sayHello}">
        <!-- Let's welcome the user ${param.name} -->
        Hello ${param.name}!
    </c:if>
    --%>
    
    </body>
</html>
